package ar.com.cema.methodology.analyzer.services.repository;

import java.util.Set;

import org.springframework.stereotype.Service;

import ar.com.cema.methodology.analyzer.model.PersistentObject;

@Service("simpleObjectRepository")
public interface SimpleObjectRepository {
	
	<T extends PersistentObject> Set<T> findAll(Class<T> clazz); 
	
	<T extends PersistentObject> Set<T> findAllWithAscendingOrder(Class<T> clazz);
	
	<T extends PersistentObject> T save(T o);
	
	<T extends PersistentObject> Integer count(Class<T> clazz);

}
